<?php defined('InTuntronKJ') or exit('Access Invalid!');?>





      <!--crumbs start-->
      <div class="crumbs">
        <ul>
          <li><span class="strong">当前位置：</span></li>
          <li><a href="#LotteryHall">首页</a></li>
            <li><a href="#GameRecord">游戏记录</a></li>
            <li><div id="li_hierarchy"></div></li>
        </ul>
        <div class="clear"></div>
      </div>
      <!--crumbs end--> 
      
      <!--list_main start-->
      <div class="list_main"> 
        <!--list_header start-->
        <div class="list_header"> 
          
         <!--list_nav start-->
          <div class="list_nav">
            <ul>
              <li class="current"><a href="#GameRecord">统计报表</a></li>
              <li><a href="#GameRecordDetail">记录明细</a></li>
            </ul>
            <div class="clear"></div>
          </div>
          <!--list_nav end-->
          
          <!--list_sort start-->
            <div class="list_sort">
                <div class="list_sort_item">
                    <div class="dc_sub dc_split"><span>用户名/昵称</span></div>
                </div>
                <div class="list_sort_item">
                    <div class="base_text bt_d">
                        <input type="text" id="NameOrNickName" value="" />
                    </div>
                </div>
                <div class="list_sort_item">
                    <div class="data_check">
                        <div class="dc_sub dc_split"><span>从</span></div>
                        <div class="dc_sub base_text">
                            <input type="text" class="datepicker" readonly="true" id="dateStart" value="2013-07-22" />
                        </div>
                        <div class="dc_sub dc_split"><span>至</span></div>
                        <div class="dc_sub base_text">
                            <input type="text" class="datepicker" readonly="true" id="dateEnd" value="2013-07-22" />
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="list_sort_item">
                    <div class="base_button">
                        <button id="btnSearch">筛选</button>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
          <!--list_sort end-->  
          
        </div>
        <!--list_header end--> 
        
        <!--list_table satrt-->
        <div class="list_table">
          <table>
            <thead>
             <tr class="dark">
                <th style="width:40px;">序号</th>
                <th style="width:100px;">用户名</th>
                <th style="width:60px;">类型</th>
                <th>投注额</th>
                <th>实际盈亏</th>
                <th style="width:200px;">操作</th>
              </tr>
            </thead>
              <tbody>
              	<?php if(!empty($output['user_list']) && is_array($output['user_list'])){?>    
              	<?php foreach($output['user_list'] as $key=>$value){?>  
                           <tr data-id="1">
                               <td class="center"><span class="gry"><?php echo $key+1?></span></td>
                               <td class="center"><a user_name="<?php echo $value['username']?>" page_index ="1" class ="GetDataByPage"  href="javascript:"><span class="base_orgen"><?php echo $value['username']?></span></a></td>
                               <td class="center"><span><?php echo $value['type']==0?'会员':'代理' ?></span></td>
                               <td class="center"><span class="light_blue">0.00</span></td>
                               <td class="center"><span class="base_green">0.00</span></td>
                               <td class="center t_option"><a user_name="<?php echo $value['username']?>" class ="GetDetailByNameClass" href="javascript:;">查询明细</a></td>
                           </tr>
                <?php }?>                    
                <?php }?>
              </tbody>
            <tfoot>
                            <tr>
                                <td class="center" colspan="3"><span>本页合计</span></td>
                                <td class="center"><span class="light_blue">0.00</span></td>
                                <td class="center"><span class="base_green">0.00</span></td>
                                <td class="center"></td>
                            </tr>
                            <tr>
                                <td class="center" colspan="3"><span>总合计</span></td>
                                <td class="center"><span class="light_blue">0.00</span></td>
                                <td class="center"><span class="base_green">0.00</span></td>
                                <td class="center"></td>
                            </tr>
            </tfoot>
          </table>
        </div>
        <!--list_table end--> 
        
         <!--page_nav start-->
        <div class="page_nav" align="right">
          <ul>
            <li><a page_index ="1"  page_change="0" class ="GetDataByPageIndex" href="javascript:">首页</a></li>
            <li><a page_index ="<?php echo $output['page']?>" page_change="-1" class ="GetDataByPageIndex" href="javascript:">上一页</a></li>
            <li><a page_index ="<?php echo $output['page']?>" page_change="1" class ="GetDataByPageIndex" href="javascript:">下一页</a></li>
            <li><a page_index ="<?php echo $output['totalpage']?>" page_change="0" class ="GetDataByPageIndex" href="javascript:">最后页</a></li>
              <li><span>第
                  <?php echo $output['page']?>
                      /
                  <?php echo $output['totalpage']?>   
                  页</span></li>
              <li><span>共
                      <?php echo $output['count']?>   
                      条记录</span></li>
              <li><a page_index ="<?php echo $output['page']?>" page_change="0" class ="GetDataByPageIndex" href="javascript:">刷新</a></li>
          </ul>
          <div class="clear"></div>
        </div>
        <!--page_nav end-->  
        
      </div>
      <!--list_main end-->

<script type="text/javascript">
    var gamerecord_BeginDate = "<?php echo $output['param']['beginDate'] ?>";
    var gamerecord_EndDate = "<?php echo $output['param']['endDate'] ?>";
    var gamerecord_NameOrNickName = "<?php echo $output['param']['nickname'] ?>";
    var gamerecord_Hierarchy = "&lt;a user_name=&#39;ping1&#39; page_index =&#39;1&#39; class =&#39;GetDataByPage&#39; href=&#39;javascript:&#39;&gt;本级&lt;/a&gt; &gt; 统计报表";
    var gamerecord_username = "<?php echo $output['param']['username'] ?>";
    init_gamerecord();
</script>